package com.raler.proyar.bl.exception;

import com.raler.proyar.il.exception.GeneralDAOException;
import com.raler.proyar.util.GeneralException;

public class GeneralBusinessException extends GeneralException {

	private static final long serialVersionUID = -5358067340118953046L;

	public GeneralBusinessException() {
		super();
	}

	public GeneralBusinessException( String codeError, String description ) {
		super( codeError, description );
	}

	public GeneralBusinessException( GeneralDAOException exception ) {
		super( exception.getCodeError(), exception.getDescription() );
	}

	public GeneralBusinessException( Exception exception ) {
		super( exception.getCause().toString(), exception.getMessage() );
	}

	public GeneralBusinessException( String codeError, String description, GeneralDAOException e ) {
		super( codeError, description );
		setStackTrace( e.getStackTrace() );
	}
}
